package Chess.Pieces;

import java.awt.Color;
import Chess.*;

/**
 *	A class representing a Queen in Chess.
 *
 *	@author		Jeff Chan, James Kuo
 */
public class Queen extends Piece {

	public Queen(Color color) {
		super(color);
	}
	
	public boolean canAttack(Board board, Square currentSquare, Square occupiedSquare) {
		return (validSetupForAttack(board, currentSquare, occupiedSquare) &&
				board.clearPathBetween(currentSquare, occupiedSquare));
	}
	
	public boolean canMove(Board board, Square currentSquare, Square emptySquare) {
		return (validSetupForMove(board, currentSquare, emptySquare) &&
				board.clearPathBetween(currentSquare, emptySquare));
	}
	
	public PieceType getPieceType() {
		return PieceType.QUEEN;
	}

}